#include <iostream>

using namespace std;

int main(void)
{
    int chengji[3][3] =
    {
        {100, 100, 100},
        {90, 50, 100},
        {60, 70, 80}
    };

    int sum[3];

    for (int i = 0; i < 3; i++)
    {
        sum[i] = 0;
        for (int j = 0; j < 3; j++)
        {
            sum[i] += chengji[i][j];
        }
        cout << "第" << i + 1 << "个同学的总分是" << sum[i] << endl;
    }

        return 0;
}